﻿using SqlSugar;
namespace WinformUpperDataCollections.Models
{
    /// <summary>
    /// 
    ///</summary>
    [SugarTable("Production_WorkOrder")]
    public class ProductionWorkorder
    {
        /// <summary>
        /// 工单主键ID 
        ///</summary>
         [SugarColumn(ColumnName="WorkOrder_Id" ,IsPrimaryKey = true ,IsIdentity = true  )]
         public int WorkorderId { get; set; }
        /// <summary>
        /// 工单编号 
        ///</summary>
         [SugarColumn(ColumnName="WorkOrderCode"    )]
         public string WorkOrderCode { get; set; }
        /// <summary>
        /// 产品 
        ///</summary>
         [SugarColumn(ColumnName="Product_Id"    )]
         public int ProductId { get; set; }
        /// <summary>
        /// 产品编号 
        ///</summary>
         [SugarColumn(ColumnName="ProductCode"    )]
         public string ProductCode { get; set; }
        /// <summary>
        /// 产品名称 
        ///</summary>
         [SugarColumn(ColumnName="ProductName"    )]
         public string ProductName { get; set; }
        /// <summary>
        /// 产品规格 
        ///</summary>
         [SugarColumn(ColumnName="ProductStandard"    )]
         public string ProductStandard { get; set; }
        /// <summary>
        /// 单位 
        ///</summary>
         [SugarColumn(ColumnName="Unit_Id"    )]
         public int UnitId { get; set; }
        /// <summary>
        /// 关联单据 
        ///</summary>
         [SugarColumn(ColumnName="AssociatedForm"    )]
         public string AssociatedForm { get; set; }
        /// <summary>
        /// 来源类型 
        ///</summary>
         [SugarColumn(ColumnName="FromType"    )]
         public string FromType { get; set; }
        /// <summary>
        /// 状态 
        ///</summary>
         [SugarColumn(ColumnName="Status"    )]
         public string Status { get; set; }
        /// <summary>
        /// 计划开始时间 
        ///</summary>
         [SugarColumn(ColumnName="PlanStartDate"    )]
         public DateTime PlanStartDate { get; set; }
        /// <summary>
        /// 计划结束时间 
        ///</summary>
         [SugarColumn(ColumnName="PlanEndDate"    )]
         public DateTime PlanEndDate { get; set; }
        /// <summary>
        /// 计划数 
        ///</summary>
         [SugarColumn(ColumnName="PlanQty"    )]
         public int PlanQty { get; set; }
        /// <summary>
        /// 实际数 
        ///</summary>
         [SugarColumn(ColumnName="RealQty"    )]
         public int RealQty { get; set; }
        /// <summary>
        /// 良品数 
        ///</summary>
         [SugarColumn(ColumnName="GoodQty"    )]
         public int GoodQty { get; set; }
        /// <summary>
        /// 不良品数 
        ///</summary>
         [SugarColumn(ColumnName="NoGoodQty"    )]
         public int NoGoodQty { get; set; }
        /// <summary>
        /// 报工时长 
        ///</summary>
         [SugarColumn(ColumnName="ReportTime"    )]
         public DateTime? ReportTime { get; set; }
        /// <summary>
        /// 生产进度 
        ///</summary>
         [SugarColumn(ColumnName="ProductionSchedule"    )]
         public string ProductionSchedule { get; set; }
        /// <summary>
        /// 实际开始时间 
        ///</summary>
         [SugarColumn(ColumnName="ActualStartDate"    )]
         public DateTime? ActualStartDate { get; set; }
        /// <summary>
        /// 实际结束时间 
        ///</summary>
         [SugarColumn(ColumnName="ActualEndDate"    )]
         public DateTime? ActualEndDate { get; set; }
        /// <summary>
        /// 备注 
        ///</summary>
         [SugarColumn(ColumnName="Remark"    )]
         public string Remark { get; set; }
        /// <summary>
        /// 创建时间 
        ///</summary>
         [SugarColumn(ColumnName="CreateDate"    )]
         public DateTime? CreateDate { get; set; }
        /// <summary>
        /// 创建人编号 
        ///</summary>
         [SugarColumn(ColumnName="CreateID"    )]
         public int? CreateID { get; set; }
        /// <summary>
        /// 创建人 
        ///</summary>
         [SugarColumn(ColumnName="Creator"    )]
         public string Creator { get; set; }
        /// <summary>
        /// 修改人 
        ///</summary>
         [SugarColumn(ColumnName="Modifier"    )]
         public string Modifier { get; set; }
        /// <summary>
        /// 修改时间 
        ///</summary>
         [SugarColumn(ColumnName="ModifyDate"    )]
         public DateTime? ModifyDate { get; set; }
        /// <summary>
        /// 修改人编号 
        ///</summary>
         [SugarColumn(ColumnName="ModifyID"    )]
         public int? ModifyID { get; set; }
    }
}
